// Movimiento con Stick

public GameObject Cube_left;
	public float velocidad = 3.0f;

	void Update ()
	{

				float translation = Input.GetAxis ("LeftStickH") * velocidad;

				if (Input.GetAxis ("LeftStickH") > 0) {
						Cube_left.transform.Translate (Vector2.right * translation * Time.deltaTime);
				}else{
						if (Input.GetAxis ("LeftStickH") < 0) {
								Cube_left.transform.Translate (Vector2.right * translation * Time.deltaTime);
						}
				}
		
	}


//COMBOS con Botones

				if(Input.GetButton ("W"))CheckKey("w");
				if(Input.GetButton ("A"))CheckKey("a");
				if(Input.GetButton ("V"))CheckKey("v");
				if(Input.GetButton ("E"))CheckKey("e");
				if(Input.GetButton ("S"))CheckKey("s");
				print (cur.Length);
	}
				

		void CheckKey(string k){
				if(Time.time - lastPress <= keyPressTimer){
						cur+=k;
				} else {
						cur=k;
				}
				lastPress=Time.time;

				CheckCombos();
		}

		void CheckCombos(){
				if (cur.Substring (cur.Length - 3) == "was")
						print ("was");
				if (cur.Substring (cur.Length - 3) == "sea")
						print ("sea");
				if (cur.Substring (cur.Length - 3) == "saw")
						print ("saw");
				if (cur.Substring (cur.Length - 4) == "save")
						print ("save");
				if (cur.Substring (cur.Length - 4) == "evas")
						print ("evas");
				if (cur.Substring (cur.Length - 4) == "vase")
						print ("vase");
				if (cur.Substring (cur.Length - 4) == "awes")
						print ("awes");
				if (cur.Substring (cur.Length - 5) == "waves")
						print ("waves");
		}


